let proxyObject = {}
proxyObject['/'] = {
    // websoket
    ws: false,
    //目标地址
    target: 'http://localhost:8081',
    //发送请求头host会被设置为target (欺骗)
    changeOrigin: true,
    //不重写请求地址
    pathReWrite: {
        '^/':'/'
    }

}
module.exports = {
    // 配置项写错会打包失败
    devServer: {
        host: 'localhost',
        port: 8080,
        proxy: proxyObject
    }
}
